export default {
 // mixins是为了代码复用
  mounted() {
    window.addEventListener('resize', this.resize)
  },
  methods: {
    resize() {
      this.myEchart.resize()
      // location.reload()
    }
  },
  beforeDestroy() {
    window.removeEventListener('resize', this.resize)
  }
}
